<?php
    if (!isset($_POST['username']) || !isset($_POST['password']) || $_POST['username'] != "maebert" || md5($_POST['password']) != "3223ae727f9fb08003986cda10459242" )
    header( 'Location: index.php?error=yes' )  
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">

<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-16">
	<title>SPAM - Admin</title>
	<script src="../lib/prototype.js" type="text/javascript"></script>
	<script src="../lib/scriptaculous.js" type="text/javascript"></script>
	<script src="admin.js" type="text/javascript"></script>	
	<link rel="stylesheet" type="text/css" href="admin.css"/>
	<meta name="author" content="Manuel Ebert">
	<!-- Date: 2009-03-31 -->

</head>
<body>

    <h1>SPAM Administrative Interface</h1>
    <h2>It may not be pretty, but it's functional.</h2>

    <ul class='selectquery'>
        <li onclick="loadTable('all', this);">All courses</li>
        <li onclick="loadTable('comp', this);">Compulsory only</li>
        <li onclick="loadTable('ex', this);">All custom</li>
        <li onclick="loadTable('newex', this);">Changed customs</li>
        <li onclick="loadOrphans(this);">Orphans</li>
    </ul>
    

    <div id="data">
    
        <p>Select a set of courses to display on the panel above!</p>
    
    </div>


</table>
</body>
</html>